package com.db.compare.core;

import java.io.Serializable;

public class BaseResponse<T> implements Serializable {
    private Boolean success = true;
    private Integer code = 0;
    private String message;
    private String path;
    private String throwable;
    private T data;
    public BaseResponse(){}
    public BaseResponse(Integer code, T data){
    	this.data=data;
    	this.code=code;
	}
    private String accessToken;
	public Boolean getSuccess() {
		return success;
	}
	public void setSuccess(Boolean success) {
		this.success = success;
	}
	public Integer getCode() {
		return code;
	}
	public void setCode(Integer code) {
		this.code = code;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}
	public String getThrowable() {
		return throwable;
	}
	public void setThrowable(String throwable) {
		this.throwable = throwable;
	}
	public T getData() {
		return data;
	}
	public void setData(T data) {
		this.data = data;
	}
	public String getAccessToken() {
		return accessToken;
	}
	public void setAccessToken(String accessToken) {
		this.accessToken = accessToken;
	}
    
    
}
